package org.scc.model;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
 * 聚会安排
 * @author rzpeng
 *
 */
public class MeetingPlan {
	
	public static final int TYPE_PREACH = 1;//讲信息 
	public static final int TYPE_COMMUNION = 2;//掰饼
	public static final int TYPE_LEADSING = 3;//领诗歌
	public static final int TYPE_TEACHSONG = 4;//教诗歌
	
	private int id;
	private Date date;
	private int type;
	
	private User user;
	private MeetingPlace meetingPlace;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public MeetingPlace getMeetingPlace() {
		return meetingPlace;
	}
	public void setMeetingPlace(MeetingPlace meetingPlace) {
		this.meetingPlace = meetingPlace;
	}
	
	public static Map<String,Integer> getAllTypes(){
		Map<String,Integer> types = new HashMap<String,Integer>();
		types.put("讲道 ", TYPE_PREACH);
		types.put("掰饼", TYPE_COMMUNION);
		types.put("领诗", TYPE_LEADSING);
		types.put("教诗", TYPE_TEACHSONG);
		return types;
	}
}
